package models

import "encoding/xml"

type MiResult struct {
	XMLName xml.Name `xml:"HIPMessageServerResult" json:"mi_result"`
}

type MiResp struct {
	XMLName  xml.Name `xml:"HIPMessageServerResponse" json:"mi_resp"`
	MiResult string   `xml:"HIPMessageServerResult" json:"mi_result"`
}

type Body struct {
	XMLName xml.Name `xml:"Body" json:"body"`
	MiResp  MiResp
}

type ResponseXml struct {
	XMLName xml.Name `xml:"Envelope" json:"xml_name"`
	Body    Body
}

type MiResultFee struct {
	XMLName xml.Name `xml:"TPAPPEntranceResult" json:"mi_result"`
}

type MiRespFee struct {
	XMLName     xml.Name `xml:"TPAPPEntranceResponse" json:"mi_resp"`
	MiResultFee string   `xml:"TPAPPEntranceResult" json:"mi_result"`
}

type BodyFee struct {
	XMLName xml.Name `xml:"Body" json:"body"`
	MiResp  MiRespFee
}

type ResponseFee struct {
	XMLName xml.Name `xml:"Envelope" json:"xml_name"`
	Body    BodyFee
}

//
//type FeeData struct {
//	//XMLName  xml.Name `xml:"Data" json:"data"`
//	AdmInfo  []FeeAdmInfo  `xml:"AdmInfo" json:"adm_info"`
//}

//type ResponseFee struct {
//	XMLName    xml.Name `xml:"Response" json:"xml_name"`
//	ResultCode string   `xml:"ResultCode" json:"result_code"`
//	ResultMsg  string   `xml:"ResultMsg" json:"result_msg"`
//	DataCount  string   `xml:"DataCount" json:"data_count"`
//	RowId      string   `xml:"RowId" json:"row_id"`
//	Data       FeeData  `xml:"Data" json:"data"`
//}

type ResponseXmlReportBody struct {
	Body string `json:"body"`
}
type ResponseXmlReport struct {
	Response string                `xml:"Response"`
	Body     ResponseXmlReportBody `xml:"Body"`
}
